<?php
/*\
 *	file: oh.framework.php
 *	----------------------
 *
 *
\*/

#ob_start();

#framework global array
$oh = array(	
	'version'	=> '0.0.10',
	'stable'	=> false,
	'path' 		=> dirname(__FILE__),
	'domain'	=> 'http://'.$_SERVER['SERVER_NAME'],
	'url'		=> 'http://'.$_SERVER['SERVER_NAME'].'/'.str_replace('\\','/',substr(dirname(__FILE__),strlen($_SERVER['DOCUMENT_ROOT']))),
	'svn'		=> file_exists(dirname(__FILE__)."/svn-up.txt") ? trim(file_get_contents(dirname(__FILE__)."/svn-up.txt")) : "",
	'timestamp'	=> time(),
	'mini'		=> false,
	'runtime'	=> true,
	'memory'	=> memory_get_usage(),
	'module' 	=> array(),
	'config' 	=> array(),
	'packs' 	=> array(),
	'boxes' 	=> array(),
	'locale'	=> "en_US",
	'debug'		=> array('track'=>array('core'=>false),'files'=>array()),
	'appliance'	=> array('name'=>'Web Application (1)'),
	'db'		=> array('name'=>'oh_database','username'=>'root','password'=>'','host'=>'localhost'),
	'filemaps'	=> array('module'=>'oh.__MODULE__.interface.php'),
	'boot'		=> array('includes','minibuilder','includes','mini'),
	'about'		=> 'oh.framework at <a href="http://oh.openplanning.net/">openplanning.net</a>',
);

#framework boot loader loop
foreach($oh['boot'] as $i) {
	if (is_dir($oh['path']."/".$i)) {
		require_once($oh['path']."/".$i."/oh.framework.boot.php");
		break;
	}
}
